<%@ page language="java" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <title>分类列表</title>

    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <!--
    <link rel="stylesheet" type="text/css" href="styles.css">
    -->
    <style type="text/css">
        body {
            background: rgb(254, 238, 189);
        }

        table {
            font-family: 宋体;
            font-size: 11pt;
            border-color: rgb(78, 78, 78);
            width: 60%;
        }

        #th {
            background: rgb(78, 78, 78);
        }
    </style>

</head>

<body>
<h2 style="text-align: center;">分类列表</h2>
<table align="center" border="1" cellpadding="0" cellspacing="0" id="All">
    <tr id="th" bordercolor="rgb(78,78,78)">
        <th>分类名称</th>
        <th>操作</th>
    </tr>

    <c:forEach var="category" items="${categoryList}">
        <tr bordercolor="rgb(78,78,78)">
            <td>${category.cname}</td>
            <td>
                <a href="<c:url value='/adminjsps/admin/category/mod.jsp?cid=${category.cid}&cname=${category.cname}'/>">修改</a>
                |
                <a href="<c:url value='/adminjsps/admin/category/del.jsp?cid=${category.cid}&cname=${category.cname}'/>">删除</a>
            </td>
        </tr>
    </c:forEach>


    <%--<tr bordercolor="rgb(78,78,78)">--%>
    <%--<td>JavaEE</td>--%>
    <%--<td>--%>
    <%--<a href="<c:url value='/adminjsps/admin/category/mod.jsp'/>">修改</a> |--%>
    <%--<a href="<c:url value='/adminjsps/admin/category/del.jsp'/>">删除</a>--%>
    <%--</td>--%>
    <%--</tr>--%>
    <%--<tr bordercolor="rgb(78,78,78)">--%>
    <%--<td>Javascript</td>--%>
    <%--<td>--%>
    <%--<a href="<c:url value='/adminjsps/admin/category/mod.jsp'/>">修改</a> |--%>
    <%--<a href="<c:url value='/adminjsps/admin/category/del.jsp'/>">删除</a>--%>
    <%--</td>--%>
    <%--</tr>--%>
    <%--<tr bordercolor="rgb(78,78,78)">--%>
    <%--<td>Struts</td>--%>
    <%--<td>--%>
    <%--<a href="<c:url value='/adminjsps/admin/category/mod.jsp'/>">修改</a> |--%>
    <%--<a href="<c:url value='/adminjsps/admin/category/del.jsp'/>">删除</a>--%>
    <%--</td>--%>
    <%--</tr>--%>
    <%--<tr bordercolor="rgb(78,78,78)">--%>
    <%--<td>hibernate</td>--%>
    <%--<td>--%>
    <%--<a href="<c:url value='/adminjsps/admin/category/mod.jsp'/>">修改</a> |--%>
    <%--<a href="<c:url value='/adminjsps/admin/category/del.jsp'/>">删除</a>--%>
    <%--</td>--%>
    <%--</tr>--%>

</table>
</body>
</html>
